#include "setting.h"
#include "ui_setting.h"


Setting::Setting(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Setting)
{
    ui->setupUi(this);
}

void Setting::LoadSetting()
{
    QDateTime dt;
    QString str;
    Api_Pidctr_Get_Conf(&pid);
    str=QString::number(dt.currentDateTime().date().year())
                +"/"+QString::number(dt.currentDateTime().date().month())
                +"/"+QString::number(dt.currentDateTime().date().day())
                +" "+QString::number(dt.currentDateTime().time().hour())
                +":"+QString::number(dt.currentDateTime().time().minute());
    ui->btnDate->setText(str);
}

Setting::~Setting()
{
    delete ui;
}
